package com.lehoon.tomato.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wang
 * @since 2020-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SupplierGoodsRecord extends Model<SupplierGoodsRecord> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 供应商id
     */
    private Integer supplierId;

    /**
     * 商品id
     */
    private Integer goodsId;

    /**
     * 供应商商品id
     */
    private Integer supplierGoodsId;

    /**
     * 商品sku
     */
    private String goodsSku;

    /**
     * 订单号
     */
    private String orderCode;

    /**
     * 当前库存
     */
    private Integer currentStock;

    /**
     * 原库存
     */
    private Integer oldStock;

    /**
     * 修改量
     */
    private Integer changeStock;

    /**
     * 修改类型
     */
    private Integer changeType;

    /**
     * 备注
     */
    private String remark;

    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
